package cn.blue.base.service;

import cn.blue.base.query.BaseQuery;
import cn.blue.base.util.PageList;

import java.util.List;

public interface BaseService<T> {
    void del(Long id);

    void add(T t);

    void update(T t);

    T findById(Long id);

    //分页查询
    public PageList<T> queryByPage(BaseQuery query);
    

    List<T>findAll();

    void batchDel(List<Long> ids);
}
